package com.ruoyi.sl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sl.mapper.SlWsperformanceMapper;
import com.ruoyi.sl.domain.SlWsperformance;
import com.ruoyi.sl.service.ISlWsperformanceService;

/**
 * 车间绩效信息Service业务层处理
 * 
 * @author admin
 * @date 2024-06-16
 */
@Service
public class SlWsperformanceServiceImpl implements ISlWsperformanceService 
{
    @Autowired
    private SlWsperformanceMapper slWsperformanceMapper;

    /**
     * 查询车间绩效信息
     * 
     * @param performanceId 车间绩效信息主键
     * @return 车间绩效信息
     */
    @Override
    public SlWsperformance selectSlWsperformanceByPerformanceId(Long performanceId)
    {
        return slWsperformanceMapper.selectSlWsperformanceByPerformanceId(performanceId);
    }

    /**
     * 查询车间绩效信息列表
     * 
     * @param slWsperformance 车间绩效信息
     * @return 车间绩效信息
     */
    @Override
    public List<SlWsperformance> selectSlWsperformanceList(SlWsperformance slWsperformance)
    {
        return slWsperformanceMapper.selectSlWsperformanceList(slWsperformance);
    }

    /**
     * 新增车间绩效信息
     * 
     * @param slWsperformance 车间绩效信息
     * @return 结果
     */
    @Override
    public int insertSlWsperformance(SlWsperformance slWsperformance)
    {
        return slWsperformanceMapper.insertSlWsperformance(slWsperformance);
    }

    /**
     * 修改车间绩效信息
     * 
     * @param slWsperformance 车间绩效信息
     * @return 结果
     */
    @Override
    public int updateSlWsperformance(SlWsperformance slWsperformance)
    {
        return slWsperformanceMapper.updateSlWsperformance(slWsperformance);
    }

    /**
     * 批量删除车间绩效信息
     * 
     * @param performanceIds 需要删除的车间绩效信息主键
     * @return 结果
     */
    @Override
    public int deleteSlWsperformanceByPerformanceIds(Long[] performanceIds)
    {
        return slWsperformanceMapper.deleteSlWsperformanceByPerformanceIds(performanceIds);
    }

    /**
     * 删除车间绩效信息信息
     * 
     * @param performanceId 车间绩效信息主键
     * @return 结果
     */
    @Override
    public int deleteSlWsperformanceByPerformanceId(Long performanceId)
    {
        return slWsperformanceMapper.deleteSlWsperformanceByPerformanceId(performanceId);
    }
}
